
package com.bingxue.edu.management.auth.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 用户手机号修改信息
 *
 * @author Charles7c
 * @since 2023/10/27 20:11
 */
@Data
@Schema(description = "用户手机号修改信息")
public class UserPhoneUpdateReq{

    /**
     * 新手机号
     */
    @Schema(description = "新手机号", example = "13811111111")
    @NotBlank(message = "新手机号不能为空")
    private String phone;

    /**
     * 验证码
     */
    @Schema(description = "验证码", example = "888888")
    @NotBlank(message = "验证码不能为空")
    @Length(min = 6,max = 6, message = "验证码非法")
    private String captcha;

    /**
     * 当前密码（未加密）
     */
    @Schema(description = "当前密码（未加密）", example = "123456")
    @NotBlank(message = "当前密码不能为空")
    private String oldPassword;
}
